import buttonWidget from "./widget/button/index.vue";
import actionBarWidget from "./widget/actionBar/index.vue";
import htmlWidget from "./widget/html/index.vue";
import inputWidget from "./widget/input/index.vue";
import radioWidget from "./widget/radio/index.vue";
import selectWidget from "./widget/select/index.vue";
import dateWidget from "./widget/date-picker/index.vue";
import tableWidget from "./widget/table/index.vue";
import uploadWidget from "./widget/upload/index.vue";

import buttonSetting from "./setting/button/index.vue";
import actionBarSetting from "./setting/actionBar/index.vue";
import htmlSetting from "./setting/html/index.vue";
import selectSetting from "./setting/select/index.vue";
import inputSetting from "./setting/input/index.vue";
import dateSetting from "./setting/date-picker/index.vue";
import radioSetting from "./setting/radio/index.vue";
import tableSetting from "./setting/table/index.vue";
import uploadSetting from "./setting/upload/index.vue";

export const components = new Map([
  ["html", { widget: htmlWidget, setting: htmlSetting }],
  ["input", { widget: inputWidget, setting: inputSetting }],
  ["button", { widget: buttonWidget, setting: buttonSetting }],
  ["radio", { widget: radioWidget, setting: radioSetting }],
  ["select", { widget: selectWidget, setting: selectSetting }],
  ["date", { widget: dateWidget, setting: dateSetting }],
  ["table", { widget: tableWidget, setting: tableSetting }],
  ["upload", { widget: uploadWidget, setting: uploadSetting }],
  ["actionBar", { widget: actionBarWidget, setting: actionBarSetting }],
]);
